package com.threeidiots.transport.exceptions;

public abstract class ApplicationException extends Exception
{
	
	private static final long serialVersionUID = 1L;
	private int msgCode;

	public ApplicationException()
	{
		super();
	}

	public ApplicationException(String msg)
	{
		super(msg);
	}

	public ApplicationException(Throwable cause)
	{
		super(cause);
	}

	public ApplicationException(int msgCode)
	{
		this.msgCode = msgCode;
	}

	public ApplicationException(int msgCode, String msg)
	{
		super(msg);
		this.msgCode = msgCode;
	}

	public ApplicationException(String msg, Throwable cause)
	{
		super(msg, cause);
	}

	public ApplicationException(int msgCode, String msg, Throwable cause)
	{
		super(msg, cause);
		this.msgCode = msgCode;
	}

	public int getMsgCode()
	{
		return msgCode;
	}

	public void setMsgCode(int msgCode)
	{
		this.msgCode = msgCode;
	}
}

